package cn.hpu.dao;

import java.util.List;
import java.util.Map;

import cn.hpu.po.Complain;

public interface ComplainDAO {

	void save(Complain complain);

	List<Complain> getComplains(Integer beginIndex, Integer pageSize);

	Integer getRecordCount();

	Complain getComplainById(Integer id);

	void update(Complain complain);

	void delete(Complain complain);

	Integer getRecordCount(Map<String, String> queryConditions);

	List<Complain> getComplains(Map<String, String> queryConditions,
			Integer beginIndex, Integer pageSize);

	List<Complain> getComplains();

}
